<div id="view">
	<br/>
	<% form_for(:graphic, :url => graphics_path, :html => { :multipart => true }) do |f| %>
		<fieldset>
			<legend>Upload graphic for "<%= @page.name %>"</legend>
			<%= error_messages_for :graphic %>
			<br/>
	  	<p>
				<label for="graphic">Browse for File</label>
				<br/>
				<%= f.file_field :uploaded_data, :class => :input_line %>
			</p>
	 	
			<%= f.hidden_field :page_id, :value => @page.id %>
		
			<ul class="right">
				<li class="horizontal"><%= link_to "cancel", :controller => "pages", :action => :edit, :id => @page %></li>
				<li class="horizontal">|</li>
	   		<li class="horizontal"><%= submit_tag "Ok" %></li>
			</ul>
			<br/>
		</fieldset>
	<% end %>
	<br/>
</div>